package com.liyunc.toolset;

import java.util.Arrays;

/**
 * @author liyuncong
 * @version 1.0
 * @file
 * @brief
 * @details Main
 * @date 2023-04-25
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2023-04-25                  liyuncong          Created
 */
public class Main {
    public static void main(String[] args) {

        args = new String[] {"--workmode=process-query", "--searchmode=contains", "--pattern=3000"};
        final CmdArgs cmdArgs = Parser.parseCmdArgs(args);
        System.out.println("Current parse cmd args : " + cmdArgs);

        final int[] foundProcess = Processor.searchProcess(
            cmdArgs.getSearchMode(), cmdArgs.getPattern());
        System.out.println("Current found process : " + Arrays.toString(foundProcess));

    }
}
